import random

def generate_matrix(rows=5, cols=5):
    return [[random.choice(['0', '1']) for _ in range(cols)] for _ in range(rows)]

if __name__ == "__main__":
    matrix = generate_matrix()
    print("生成的测试矩阵为：")
    for row in matrix:
        print(' '.join(row))
